<?php
$this->breadcrumbs=array(
	'图书馆管理'=>array('index'),
	'管理',
);

$this->menu=array(
	array('label'=>'添加图书馆', 'url'=>array('create')),
	array('label'=>'管理图书馆', 'url'=>array('admin')),
);
?>
<?php
Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('ur-library-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<h2 class='green'>图书馆管理</h2>





<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'ur-library-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'id',
		'name',
		'province',
		'city',
		'create_datetime',
		'update_datetime',
		array(
			'class'=>'CButtonColumn',
		),
	),
)); ?>
